package com.tony.easymvc.core;

public class TableUtils {

    public static String resoleSchema(String jdbcUrl) {
        String schema = "";
        int i = jdbcUrl.lastIndexOf("/");
        if (jdbcUrl.indexOf("?") < 0) {
            schema = jdbcUrl.substring(i + 1);
        } else {
            schema = jdbcUrl.substring(i + 1, jdbcUrl.indexOf("?"));
        }
        return schema;
    }

}
